# -*- coding: utf-8 -*-
# @Time    : 2024/2/1 21:15
# @Author  : micah
# @File    : 8.获取单个节点.py
# @Software: PyCharm


import time
from selenium import webdriver
from selenium.webdriver.common.by import By


browser = webdriver.Chrome()
browser.get('https://news.baidu.com/')

res = browser.find_element(By.ID, 'ww')
print(res)  # 对象


time.sleep(2)

browser.close()

